import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 境外自动测试手机号新增
export function addAutoTestPhone(data) {
    return request({
      url: '/abroad/autoTestPhone/v1.0.0/add',
      method: 'post',
      data: data
    })
  }
// 境外自动测试手机号删除
export function deleteAutoTestPhone(id) {
    return request({
      url: '/abroad/autoTestPhone/v1.0.0/deleteById',
      method: 'get',
      params: { 
        id:parseStrEmpty(id)
      }
    })
  }
// 境外自动测试手机号启用状态修改
export function updateIsUse(params) {
  return request({
    url: '/abroad/autoTestPhone/v1.0.0/updateIsUse',
    method: 'get',
    params
  })
}

// 境外自动测试手机号列表分页查询
export function queryAutoAbroadTestByPage(data) {
  return request({
    url: '/abroad/autoTestPhone/v1.0.0/queryAutoAbroadTestByPage',
    method: 'post',
    data: data
  })
  }